Apparatus control device, apparatus, apparatus control method, and storage medium

ABSTRACT

An apparatus control device includes: at least one processor; and at least one first memory that stores a program executed by the processor, in which the processor acquires input data based on at least one of acceleration and angular velocity generated by application of an external force to an apparatus, classifies a plurality of the acquired input data into a plurality of clusters by an unsupervised clustering method, acquires relationship data representing relationship between the acquired input data and the plurality of classified clusters, and controls movement of the apparatus based on the acquired relationship data.

With regard to this application, priority shall be claimed based onJapanese Patent Application No. 2020-054213 filed on Mar. 25, 2020, andall the contents of the basic application shall be incorporated intothis application.

BACKGROUND 1. Technical Field

The present invention relates to an apparatus control device, anapparatus, an apparatus control method, and a storage medium.

2. Related Art

There are known techniques for controlling movement of robots or variousapparatuses so that they can be made similar to familiar beings such asfriends and pets. For example, Japanese Patent Application Laid-Open No.2009-43699 discloses a charger that imitates a small animal, and thischarger includes an artificial eyeball for expressing a facialexpression and an acceleration sensor. In this charger, whenacceleration detected by the acceleration sensor is larger than apredetermined upper limit specified value, the artificial eyeball iscontrolled so that a surprised facial expression is generated.

SUMMARY

An aspect of an apparatus control device according to the presentinvention includes:

at least one processor; and

at least one first memory that stores a program executed by theprocessor, in which

the processor

acquires input data based on at least one of acceleration and angularvelocity generated by application of an external force to an apparatus,

classifies a plurality of the acquired input data into a plurality ofclusters by an unsupervised clustering method,

acquires relationship data representing relationship between theacquired input data and the plurality of classified clusters, and

controls movement of the apparatus based on the acquired relationshipdata.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram showing an appearance of a robot according to afirst embodiment;

FIG. 2 is a cross-sectional view of the robot according to the firstembodiment as viewed from a side;

FIG. 3 is a diagram explaining a housing of the robot according to thefirst embodiment;

FIG. 4 is a diagram explaining an example of movement of a twist motorof the robot according to the first embodiment;

FIG. 5 is another diagram explaining an example of the movement of thetwist motor of the robot according to the first embodiment;

FIG. 6 is a diagram explaining an example of movement of a verticalmotor of the robot according to the first embodiment;

FIG. 7 is another diagram explaining an example of the movement of thevertical motor of the robot according to the first embodiment;

FIG. 8 is a block diagram showing a functional configuration of therobot according to the first embodiment;

FIG. 9A is a diagram for explaining processing of a classification unitand relationship data acquisition unit according to the firstembodiment;

FIG. 9B is a diagram for explaining processing of the classificationunit and the relationship data acquisition unit according to the firstembodiment, which is different from FIG. 9A;

FIG. 10 is a diagram explaining an example of an emotion map accordingto the first embodiment;

FIG. 11 is a flowchart showing a flow of robot control processingaccording to the first embodiment;

FIG. 12 is a block diagram showing a functional configuration of a robotaccording to a second embodiment; and

FIG. 13 is a block diagram showing a functional configuration of anapparatus control device and a robot according to a modification.

DETAILED DESCRIPTION

Hereinafter, embodiments of the present invention will be described withreference to the drawings. The same or corresponding parts in thedrawings are designated by the same reference numerals.

First Embodiment

An embodiment in which an apparatus control device according to a firstembodiment of the present invention is applied to a robot 200 shown inFIG. 1 will be described with reference to the drawings. The robot 200according to the embodiment is a pet robot that imitates a small animal.As shown in FIG. 1, the robot 200 is covered with an exterior 201 havingeye-like decorative parts 202 and bushy hair 203. Further, a housing 207of the robot 200 is housed in the exterior 201. As shown in FIG. 2, thehousing 207 of the robot 200 includes a head portion 204, a connectingportion 205, and a body portion 206, and the head portion 204 and thebody portion 206 are connected by the connecting portion 205.

Further, the exterior 201 is attached to the housing 207 with snapbuttons so that movement of the housing 207 of the robot 200 isreflected in the exterior 201. Specifically, two snap buttons areprovided in a front portion of the head portion 204, and two snapbuttons are also provided in a back portion of the body portion 206.Corresponding positions of the exterior 201 are also provided with snapbuttons that fit with the snap buttons provided on the head portion 204and the body portion 206, and the exterior 201 is fastened and attachedto the housing 207 by the snap buttons. The number and positions of thesnap buttons shown here are examples and can be changed arbitrarily.

The body portion 206 extends in a front-rear direction, and comes intocontact with a mounting surface such as a floor or a table on which therobot 200 is placed via the exterior 201. Then, as shown in FIG. 2, atwist motor 221 is provided at a front end portion of the body portion206, and the head portion 204 is connected to the front end portion ofthe body portion 206 via the connecting portion 205. The connectingportion 205 is provided with a vertical motor 222. Although the twistmotor 221 is provided in the body portion 206 in FIG. 2, the twist motor221 may be provided in the connecting portion 205.

The connecting portion 205 connects the body portion 206 to the headportion 204 rotatably around a first rotation axis extending in thefront-rear direction of the body portion 206 through the connectingportion 205. As shown in FIGS. 4 and 5 as a front view of the housing207, the twist motor 221 rotates the head portion 204 together with thevertical motor 222 clockwise (right-hand turn) with respect to the bodyportion 206 around the first rotation axis within a forward rotationangle range (forward rotation), or rotates the head portion 204counterclockwise (left-hand turn) within a reverse rotation angle range(reverse rotation). A clockwise direction in this description isclockwise when a direction from the body portion 206 to the head portion204 is viewed. In addition, clockwise rotation is also referred to as“twist rotation to the right”, and counterclockwise rotation is alsoreferred to as “twist rotation to the left”. A maximum value of an angleto twist and rotate to the right or left is arbitrary. In FIGS. 4 and 5,the angle of the head portion 204 (hereinafter referred to as “twistreference angle”) in a state where the head portion 204 is not twistedto the right or left as shown in FIG. 3 is represented by 0. Also, theangle when twisted and rotated to the leftmost (rotatedcounterclockwise) is represented by −100, and the angle when twisted androtated to the rightmost (rotated clockwise) is represented by +100.

Further, the connecting portion 205 rotatably connects the body portion206 to the head portion 204 around a second rotation axis extending in awidth direction of the body portion 206 through the connecting portion205. As shown in FIGS. 6 and 7 as side views of the housing 207, thevertical motor 222 rotates (forward rotation) the head portion 204upward within a forward rotation angle range around the second rotationaxis, and rotates (reverse rotation) downward within a reverse rotationangle range. The maximum value of the angle to rotate upward or downwardis arbitrary, but in FIGS. 6 and 7, the angle of the head portion 204when the head portion 204 is not rotated upward or downward (hereinafter“vertical reference angle”) as shown in FIG. 2 is represented by 0, theangle when rotated most downward is represented by −100, and the anglewhen rotated most upward is represented by +100. When the head portion204 is rotated at the vertical reference angle or below the verticalreference angle by vertical rotation around the second rotation axis,the head portion 204 can be brought into contact with a mounting surfacesuch as a floor or a table, on which the robot 200 is placed, throughthe exterior 201. Note that FIG. 2 shows an example in which the firstrotation axis and the second rotation axis are orthogonal to each other,but the first and second rotation axes do not have to be orthogonal toeach other.

Further, as shown in FIG. 2, the robot 200 is provided with a touchsensor 211 on the head portion 204, and the touch sensor 211 can detectthat a user has stroked or hit the head portion 204. Further, the bodyportion 206 is provided with the touch sensor 211 as well, and the touchsensor 211 can also detect that the user has stroked or hit the bodyportion 206.

In addition, the robot 200 is provided with an acceleration sensor 212and a gyro sensor 214 on the body portion 206, and the accelerationsensor 212 and the gyro sensor 214 can detect a posture of the robot 200itself, and that the robot 200 has been lifted, turned, or thrown by theuser. Further, the robot 200 is provided with a microphone 213 on thebody portion 206, and can detect an external sound. Further, the robot200 is provided with a speaker 231 on the body portion 206, and can emita cry of the robot 200 by using the speaker 231.

In the present embodiment, the acceleration sensor 212, the gyro sensor214, the microphone 213, and the speaker 231 are provided on the bodyportion 206, but all or a part of these may be provided on the headportion 204. Further, in addition to the acceleration sensor 212, thegyro sensor 214, the microphone 213, and the speaker 231 provided on thebody portion 206, all or a part of these may be provided on the headportion 204 as well.

Next, a functional configuration of the robot 200 will be described. Asshown in FIG. 8, the robot 200 includes an apparatus control device 100,a sensor unit 210, a drive unit 220, an output unit 230, and anoperation unit 240. The apparatus control device 100 includes a controlunit 110 and a storage unit 120. In FIG. 8, the apparatus control device100 and the sensor unit 210, the drive unit 220, the output unit 230,and the operation unit 240 are connected via a bus line BL, as anexample. The apparatus control device 100 and the sensor unit 210, thedrive unit 220, the output unit 230, and the operation unit 240 may beconnected by a wired interface such as a universal serial bus (USB)cable or a wireless interface such as Bluetooth (registered trademark).Further, the control unit 110 and the storage unit 120 may be connectedvia the bus line BL.

The apparatus control device 100 controls movement of the robot 200 bythe control unit 110 and the storage unit 120.

The control unit 110 is composed of, for example, a central processingunit (CPU) as at least one processor, and by executing a program storedin at least one storage unit 120, functions as each unit described later(an external stimulus acquisition unit 111, an input data acquisitionunit 112, a classification unit 113, a relationship data acquisitionunit 114, a change amount acquisition unit 115, an emotion parametersetting unit 116, and a movement control unit 117). Further, althoughnot shown, the control unit 110 also has a clock function and a timerfunction, and can measure date and time and the like.

The storage unit 120 is composed of a read only memory (ROM), a flashmemory, a random access memory (RAM), and the like. The ROM stores aprogram executed by the CPU of the control unit 110 and data necessaryfor executing the program in advance. The flash memory is a writablenon-volatile memory that stores data to be kept even after the power isturned off. The RAM stores data created or modified during programexecution.

The sensor unit 210 includes the touch sensor 211, the accelerationsensor 212, the gyro sensor 214, and the microphone 213 describedearlier. The control unit 110 acquires detected values detected byvarious sensors included in the sensor unit 210 as external stimuli viathe bus line BL. The sensor unit 210 may include a sensor other than thetouch sensor 211, the acceleration sensor 212, the gyro sensor 214, andthe microphone 213. By increasing types of sensors included in thesensor unit 210, types of external stimuli that can be acquired by thecontrol unit 110 can be increased.

The touch sensor 211 detects that some object has come into contact. Thetouch sensor 211 is composed of, for example, a pressure sensor or acapacitance sensor. The detected value detected by the touch sensor 211indicates contact strength. In addition, the touch sensor 211 is capableof directional contact detection, and detects the contact strength in athree-axial direction consisting of contact with the body portion 206 ofthe robot 200 from the front-rear direction (X-axis direction), from thewidth (left-right) direction (Y-axis direction), and from the verticaldirection (Z-axis direction). Therefore, the detected value of the touchsensor 211 is three-dimensional data including values of the contactstrength from the X-axis direction, the contact strength from the Y-axisdirection, and the contact strength from the Z-axis direction. Thecontrol unit 110 can detect that the robot 200 is being stroked or hitby the user based on the detected value from the touch sensor 211.

The acceleration sensor 212 detects the acceleration in the three-axialdirection consisting of the front-rear direction (X-axis direction), thewidth (left-right) direction (Y-axis direction), and the verticaldirection (Z-axis direction) of the body portion 206 of the robot 200.Therefore, the value of the acceleration detected by the accelerationsensor 212 is three-dimensional data including values of theacceleration in the X-axis direction, the acceleration in the Y-axisdirection, and the acceleration in the Z-axis direction. Since theacceleration sensor 212 detects gravitational acceleration when therobot 200 is stationary, the control unit 110 can detect the currentposture of the robot 200 based on the gravitational accelerationdetected by the acceleration sensor 212. Further, for example, when theuser lifts or throws the robot 200, the acceleration sensor 212 detectsthe acceleration accompanying the movement of the robot 200 in additionto the gravitational acceleration. Therefore, the control unit 110 candetect the movement of the robot 200 by removing a component of thegravitational acceleration from the detected value detected by theacceleration sensor 212.

The gyro sensor 214 detects the angular velocity when rotation isapplied to the body portion 206 of the robot 200. Specifically, the gyrosensor 214 detects the angular velocity of the three-axial rotationconsisting of rotation around the front-rear direction (X-axisdirection) of the body portion 206, rotation around the width(left-right) direction (Y-axis direction), and rotation around thevertical direction (Z-axis direction). Therefore, the value of theangular velocity detected by the gyro sensor 214 is three-dimensionaldata including values of the angular velocity of the X-axis rotation,the angular velocity of the Y-axis rotation, and the angular velocity ofthe Z-axis rotation. By combining the detected value detected by theacceleration sensor 212 and the detected value detected by the gyrosensor 214, the movement of the robot 200 can be detected moreaccurately.

The touch sensor 211, the acceleration sensor 212, and the gyro sensor214 are synchronized with each other, detect the contact strength,acceleration, and angular velocity at the same timing, respectively, andoutput the detected values to the control unit 110. Specifically, thetouch sensor 211, the acceleration sensor 212, and the gyro sensor 214detect the contact strength, acceleration, and angular velocity at thesame timing, for example, every 0.25 seconds.

The microphone 213 detects sound around the robot 200. Based on soundcomponents detected by the microphone 213, the control unit 110 candetect, for example, that the user is calling the robot 200, clappinghis or her hands, or the like.

The drive unit 220 includes the twist motor 221 and the vertical motor222. The drive unit 220 is driven by the control unit 110. As a result,the robot 200 can express movement such as lifting the head portion 204(rotating upward around the second rotation axis), twisting the headportion 204 sideways (twisting and rotating to the right or left aroundthe first rotation axis). Movement control data for performing suchmovement is recorded in an emotion expression table 122 described later,and the movement of the head portion 204 of the robot 200 is controlledbased on pseudo emotions on an emotion map described later. Based on themovement control data recorded in the emotion expression table 122, therobot 200 performs, for example, movement that looks happy when onefeels happy, and movement that looks sad when one feels sad.

The output unit 230 includes the speaker 231, and when the control unit110 inputs sound data to the output unit 230, sound is output from thespeaker 231. For example, when the control unit 110 inputs data of a cryof the robot 200 to the output unit 230, the robot 200 emits a pseudocry of an animal. This data of the cry of the animal is also recorded inthe emotion expression table 122, and a cry of the animal is selectedbased on pseudo emotions on the emotion map described later. Based onthe animal cry data recorded in the emotion expression table 122, therobot 200 emits, for example, a cry that sounds happy when one feelshappy, and a cry that sounds sad when one feels sad.

The output unit 230 is provided with a display such as a liquid crystaldisplay and a light emitting unit such as a light emitting diode (LED)in place of the speaker 231 or in addition to the speaker 231 and maydisplay emotions such as happiness and sadness on the display, orexpress emotions by colors and brightness of emitted light. In thiscase, based on the pseudo emotions on the emotion map, display contentson the display corresponding to each emotion, the colors and brightnessof the light emitting unit, and the like need to be recorded in advancein the emotion expression table 122.

The operation unit 240 is composed of, for example, an operation button,a volume knob, and the like. The operation unit 240 is an interface foraccepting user operations such as power on/off and volume adjustment ofoutput sound.

Next, the functional configuration of the control unit 110 included inthe apparatus control device 100 will be described. The control unit 110functions as the external stimulus acquisition unit 111, the input dataacquisition unit 112, the classification unit 113, the relationship dataacquisition unit 114, the change amount acquisition unit 115, theemotion parameter setting unit 116, the movement control unit 117, and achange amount learning unit 118.

The external stimulus acquisition unit 111 acquires an external stimulusapplied to the robot 200 from an outside based on the detected valuefrom the sensor unit 210. Since the sensor unit 210 includes a pluralityof sensors (the touch sensor 211, the acceleration sensor 212, the gyrosensor 214, and the microphone 213), the external stimulus acquisitionunit 111 uses the plurality of sensors to acquire a plurality ofexternal stimuli of different types.

The input data acquisition unit 112 acquires input data based on atleast one of acceleration and the angular velocity generated byapplication of an external force to the robot 200, and stores the inputdata in an input data history buffer 125 described later.

Specifically, first, when an external force is applied to the robot 200and the acceleration sensor 212 or the gyro sensor 214 detectsacceleration equal to or higher than a threshold value or angularvelocity equal to or higher than a threshold value, for example, in 0.75seconds from the time the acceleration or the angular velocity isdetected, the input data acquisition unit 112 detects values of thecontact strength, the acceleration, and the angular velocity detected bythe touch sensor 211, the acceleration sensor 212, and the gyro sensor214. As described above, since the touch sensor 211, the accelerationsensor 212, and the gyro sensor 214 perform detection at intervals of0.25 seconds, in the 0.75 seconds described above, three values aredetected for each of the contact strength, acceleration, and angularvelocity. Subsequently, the input data acquisition unit 112 calculates amean value and a standard deviation of the three values of each of thecontact strength, acceleration, and angular velocity acquired asdescribed above, and acquires the mean value and standard deviation asinput data.

As described above, the contact strength, acceleration, and angularvelocity are detected by three components of the X-axis direction,Y-axis direction, and Z-axis direction. Therefore, one input data itemincludes a mean value and a standard deviation of the component of theX-axis direction, a mean value and a standard deviation of the componentof the Y-axis direction, and a mean value and a standard deviation ofthe component of the Z-axis direction of the contact strength, a meanvalue and a standard deviation of the component of the X-axis direction,a mean value and a standard deviation of the component of the Y-axisdirection, and a mean value and a standard deviation of the component ofthe Z-axis direction of the acceleration, and a mean value and astandard deviation of the component of the X-axis direction, a meanvalue and a standard deviation of the component of the Y-axis direction,and a mean value and a standard deviation of the component of the Z-axisdirection of the angular velocity. That is, the input data is18-dimensional data composed of 18 values.

The input data acquired by the input data acquisition unit 112 is notlimited to the above configuration, and may include any value as long asthe value is based on at least one of the acceleration and the angularvelocity generated by application of an external force to the robot 200.For example, the maximum value or the minimum value of the accelerationor angular velocity measured in 0.75 seconds may be included in theinput data.

The classification unit 113 classifies a plurality of the input datastored in the input data history buffer 125 into a plurality of clustersby an unsupervised clustering method. A known method can be adopted asthe clustering method used by the classification unit 113 as long as themethod does not require teacher data for clustering the input data, andfor example, K-means clustering is applicable. The number of clustersclassified by the classification unit 113 may or may not be set inadvance. When the number of clusters is not set, the classification unit113 may automatically classify the plurality of input data into theoptimum number of clusters based on distribution status of the pluralityof input data.

The relationship data acquisition unit 114 acquires relationship datarepresenting relationship between the input data acquired by the inputdata acquisition unit 112 and the plurality of clusters generated by theclassification unit 113.

Specifically, first, the relationship data acquisition unit 114specifies a cluster to which the input data acquired this time belongsamong the plurality of classified clusters. Subsequently, therelationship data acquisition unit 114 obtains input data distance,which is distance of the input data from a center of the specifiedcluster in a feature space representing the relationship between theplurality of classified clusters and the input data acquired this time.The input data distance is normalized so that it ranges from 0 to 1.Subsequently, the relationship data acquisition unit 114 acquiresrelationship data 126 based on the input data distance. The relationshipdata 126 is data having a value in the range of 1 to 10, which becomessmaller as the input data distance increases. For example, if the inputdata distance is 0, which is the minimum, the value of relationship data126 is 10, which is the maximum. If the input data distance is 1, whichis the maximum, the value of the relationship data 126 is 1, which isthe minimum.

The larger the value of the relationship data 126, that is, the smallerthe input data distance, the higher the correlation between the inputdata acquired this time and the input data acquired so far. Therefore,the robot 200 is familiar with an external stimulus attributable to theinput data this time. Therefore, the value of the relationship data 126represents how familiar the robot 200 is to the external stimulus(hereinafter, referred to as degree of familiarity).

Here, processing of the classification unit 113 and the relationshipdata acquisition unit 114 will be described with reference to FIGS. 9Aand 9B. FIG. 9A is a diagram illustrating distribution of the pluralityof input data stored in the input data history buffer 125 in the featurespace. As described above, the input data is 18-dimensional data, butfor ease of explanation, this figure illustrates the distribution in atwo-dimensional feature space. In this figure, a black circle and adouble circle represent the input data stored in the input data historybuffer 125. The double circle is the input data acquired this time bythe input data acquisition unit 112.

In this case, the classification unit 113 classifies the input data intofive clusters C1 to C5, as shown in FIG. 9B. Also, from this figure, itcan be seen that the cluster to which the input data acquired this timebelongs is the cluster C3. Therefore, distance L from the center of thecluster C3 to the input data acquired this time is calculated as theinput data distance, and the relationship data 126 is acquired based onthe input data distance.

Returning to FIG. 8, the change amount acquisition unit 115 acquires anemotion change parameter (emotion change data 124 described later),which is a parameter that changes a pseudo emotion of the robot 200,according to an external stimulus acquired by the external stimulusacquisition unit 111. Then, the change amount acquisition unit 115corrects the acquired emotion change parameter (emotion change data 124)according to the relationship data 126 acquired by the relationship dataacquisition unit 114. The change amount acquisition unit 115 may acquirethe emotion change parameter (emotion change data 124) according to theexternal stimulus after uniformly correcting all the emotion changeparameters according to the relationship data 126. Further, the storageunit 120 stores a table that defines the emotion change parameter(emotion change data 124) corresponding to each set of the type of theexternal stimulus and the value of the relationship data 126, and acorrected value thereof. Then, the change amount acquisition unit 115may acquire the emotion change parameter by referring to the table.

The emotion parameter setting unit 116 sets an emotion parameter(emotion data 121 described later) representing a pseudo emotion of therobot 200 according to the emotion change parameter (emotion change data124) acquired by the change amount acquisition unit 115. As describedabove, since the emotion change parameter has been corrected accordingto the relationship data, the emotion parameter setting unit 116 setsthe emotion parameter (the emotion data 121 described later) based onthe relationship data.

The movement control unit 117 controls the movement of the robot 200according to the emotion parameter (emotion data 121) set by the emotionparameter setting unit 116. Specifically, the movement control unit 117drives the drive unit 220 based on the data (movement control data andanimal cry data) of the emotion expression table 122 corresponding tothe set emotion data 121, and outputs a cry of the animal from theoutput unit 230. As described above, the emotion change parameter iscorrected according to the relationship data. Since the emotionparameter (emotion data 121) is set according to the emotion changeparameter, the movement control unit 117 controls the movement of therobot 200 based on the relationship data.

The change amount learning unit 118 learns and stores the emotion changeparameter (emotion change data 124 described later) according to theexternal stimulus acquired by the external stimulus acquisition unit111. Specifically, the change amount learning unit 118 increases ordecreases the emotion change data 124 according to the external stimulusby robot control processing described later.

Next, among the data stored in the storage unit 120, the emotion data121, the emotion expression table 122, growth days data 123, the emotionchange data 124, the input data history buffer 125, and the relationshipdata 126, which are characteristic data of the present embodiment, willbe described in order.

The emotion data 121 is data for causing the robot 200 to have a pseudoemotion, and is data (X, Y) representing coordinates on an emotion map300. As shown in FIG. 10, the emotion map 300 is represented by atwo-dimensional coordinate system having an axis of security (anxiety)as an X-axis 311 and an axis of excitement (lethargy) as a Y-axis 312.An origin 310 (0, 0) on the emotion map 300 represents a normal emotion.When a value of an X-coordinate (X value) is positive and as an absolutevalue thereof increases, an emotion with a higher degree of security isexpressed. When a value of a Y-coordinate (Y value) is positive and asan absolute value thereof increases, an emotion with a higher degree ofexcitement is expressed. Moreover, when the X value is negative and asthe absolute value thereof increases, an emotion with a higher degree ofanxiety is expressed. When the Y value is negative and as the absolutevalue thereof increases, an emotion with a higher degree of lethargy isexpressed.

The emotion data 121 has two values, the X value (security and anxiety)and the Y value (excitement and lethargy), which represent a pluralityof pseudo emotions (four in this embodiment) that are different fromeach other. Points on the emotion map 300 represented by the X value andthe Y value represent pseudo emotions of the robot 200. An initial valueof the emotion data 121 is (0, 0). Since the emotion data 121 is aparameter representing a pseudo emotion of the robot 200, the emotiondata 121 is also called an emotion parameter. Although the emotion map300 is represented by a two-dimensional coordinate system in FIG. 10,the number of dimensions of the emotion map 300 is arbitrary. Theemotion map 300 may be defined in one dimension so that one value is setas the emotion data 121. Further, the emotion map 300 may be defined ina coordinate system having three or more dimensions by adding other axesso that values of the number of dimensions of the emotion map 300 areset as the emotion data 121.

In the present embodiment, the size of the emotion map 300 as an initialvalue is 100 as the maximum value and −100 as the minimum value for boththe X value and the Y value, as shown in a frame 301 of FIG. 10. Then,during a first period, each time pseudo growth days of the robot 200increase by one day, both the maximum value and the minimum value of theemotion map 300 are expanded by 2. Here, the first period is a period inwhich the robot 200 grows in a pseudo manner, and is, for example, aperiod of 50 days from a pseudo birth of the robot 200. The pseudo birthof the robot 200 is a first activation by a user after the robot 200 isshipped from a factory. When the number of growth days reaches 25 days,the maximum value of both the X value and the Y value becomes 150 andthe minimum value becomes −150, as shown in a frame 302 of FIG. 10.Then, after a lapse of the first period (50 days in this example), asshown in a frame 303 of FIG. 10, the maximum value of the X value andthe Y value becomes 200 and the minimum value becomes −200, and the sizeof the emotion map 300 is fixed.

A settable range of the emotion data 121 is defined by the emotion map300. Therefore, as the size of the emotion map 300 expands, the settablerange of the emotion data 121 expands. Since the settable range of theemotion data 121 expands, a richer emotion can be expressed, so that thepseudo growth of the robot 200 is expressed through an expansion of thesize of the emotion map 300. Then, the size of the emotion map 300 isfixed after the first period elapses, and the pseudo growth of the robot200 ends.

The movement control data and the animal cry data are recorded in theemotion expression table 122. The movement control data and the animalcry data are data for setting the movement and a cry of the animalcorresponding to each emotion represented by the coordinates on theemotion map 300. The emotion expression table 122 is represented by atwo-dimensional array (movement control data [X′] [Y′] and animal crydata [X′] [Y′]) for both the movement control data and the animal crydata. Values of X′ and Y correspond to the coordinates (X, Y) on theemotion map 300 respectively, but in the present embodiment, values(rounded to the nearest whole numbers) each obtained by dividing thecoordinates (X value and Y value) on the emotion map 300 by a referencemagnification value (for example, 100) are used as indexes (X′ value andY′ value) of the two-dimensional array of the emotion expression table122. Here, assuming that the reference magnification value is 100, boththe X′ value and the Y′ value can take five values of −2, −1, 0, 1, and2. In this case, since there are five X′ values and five Y′ values,5×5=25 types of movement control data and animal cry data are recordedin the emotion expression table 122. When the apparatus control device100 expresses an emotion of the robot 200, the apparatus control device100 uses a value of the emotion expression table 122 indicated by theindexes corresponding to the coordinates indicated by the currentemotion data 121 of the robot 200. For example, if the emotion data 121(X, Y) is (60, −30), the indexes (X′, Y′)=(1, 0) of the emotionexpression table 122 is obtained (this is because X′=60÷100≈1, andY′=−10÷100≈0), the emotion is expressed using the movement control data[1] [0] and the animal cry data [1] [0].

Correspondence between the coordinates of the emotion expression table122 and the emotion map 300 is not limited to the above example. In theabove example, a coordinate range is evenly divided into five stages forboth the X-axis and the Y-axis. However, the coordinate range may be setfreely, for example, as follow: dividing the part of the X-axis with 0or more into ten stages, the part with less than 0 into two stages, thepart of the Y-axis from −30 to 30 into three stages, the part less than−30 into five stages, the part over 30 into six stages, and so on. Inaddition, the movement and cry of the animal corresponding to eachcoordinate of the emotion map 300 (for example, 401×401=160801 types)may be set in the emotion expression table 122.

The growth days data 123 has an initial value of 1, and is increased by1 each time one day elapses. The growth days data 123 represents pseudogrowth days (the number of days since the pseudo birth) of the robot200. Here, the period of the number of growth days represented by thegrowth days data 123 is referred to as a second period.

The emotion change data 124 is data for setting an amount of change thatincreases or decreases each of the X value and the Y value of theemotion data 121. In the present embodiment, the emotion change data 124corresponding to the X value of the emotion data 121 includes DXP thatincreases the X value and DXM that decreases the X value, and theemotion change data 124 corresponding to the Y value of the emotion data121 includes DYP that increases the Y value and DYM that decreases the Yvalue. That is, the emotion change data 124 consists of the followingfour variables. Since these variables are parameters that change pseudoemotions of the robot 200, they are also called emotion changeparameters.

DXP: Easiness of feeling secured (easiness of changing the X value in apositive direction on the emotion map)

DXM: Easiness of feeling anxious (easiness of changing the X value in anegative direction on the emotion map)

DYP: Easiness of getting excited (easiness of changing the Y value inthe positive direction on the emotion map)

DYM: Easiness of being lethargic (easiness of changing the Y value inthe negative direction on the emotion map)

In the present embodiment, as an example, the initial values of all ofthese variables are set to 10, and the change amount learning unit 118described above increases these variables up to 20. Since the emotionchange data 124, that is, the degree of emotion change is changed by thechange amount learning unit 118, the robot 200 has various personalitiesdepending on how the user interacts with the robot 200. That is, each ofthe personalities of the robot 200 is formed differently depending onhow the user interacts with the robot 200. In other words, the value ofthe emotion change parameter (emotion change data 124) represents apseudo personality of the robot 200.

Further, in the present embodiment, the emotion change data 124, thatis, the degree of emotion change is also changed by the relationshipdata 126 representing the degree of familiarity with an externalstimulus. Therefore, the robot 200 can perform the movement taking intoconsideration how the user has interacted with the robot 200 in thepast.

The input data history buffer 125 accumulates the input data acquired sofar by the input data acquisition unit 112. There is a limit (forexample, 200) on the number of input data that can be stored in theinput data history buffer 125. When the input data exceeding the limitis newly stored in the input data history buffer 125, the input datahaving the earliest acquisition date and time among the stored inputdata is deleted.

The relationship data 126 is data indicating relationship between theinput data acquired this time by the input data acquisition unit 112 andthe plurality of clusters (clusters C1 to C5) into which the pluralityof input data stored in the input data history buffer 125 areclassified. Specifically, the relationship data 126 is acquired based onthe distance of the input data (input data distance) from the center ofthe cluster to which the acquired input data belongs in the featurespace representing the relationship between the plurality of clustersand the input data. The relationship data represents the degree offamiliarity of the robot 200.

Next, the robot control processing executed by the control unit 110 ofthe apparatus control device 100 will be described with reference to theflowchart shown in FIG. 11. The robot control processing is processingin which the apparatus control device 100 controls the movement andcries of animals of the robot 200 based on a detected value from thesensor unit 210 and the like. When the user turns on the power of therobot 200, the robot control processing is started.

First, the control unit 110 sets various data such as the emotion data121, the growth days data 123, and the emotion change data 124 (stepS101). Initial values are set for values of these data when the robot200 is first activated (when the robot is first activated by the userafter shipment from the factory), but when the robot 200 is activatedfor the second time or later, values saved in step S113 of the previousrobot control processing described later are set.

Next, the external stimulus acquisition unit 111 acquires an externalstimulus from the sensor unit 210 (step S102).

Subsequently, the change amount acquisition unit 115 provisionallyacquires the emotion change data 124 (emotion change parameter) to beadded to or subtracted from the emotion data 121 (emotion parameter) inresponse to the external stimulus acquired in step S102 (step S103). Forexample, when it is detected by the touch sensor 211 on the head portion204 that the head of the robot 200 is stroked as an external stimulus,the change amount acquisition unit 115 provisionally acquires DXP as theemotion change data 124 to be added to the X value of the emotion data121.

Subsequently, the input data acquisition unit 112 determines whether ornot the external stimulus acquired by the sensor unit 210 in step S102is generated by application of an external force to the robot 200 (stepS104). Specifically, the input data acquisition unit 112 may determinewhether or not the external stimulus acquired by the sensor unit 210includes acceleration equal to or higher than a threshold value orangular velocity equal to or higher than a threshold value.

For example, when the external stimulus is caused only by sound and isnot generated by application of an external force to the robot 200 (Noin step S104), the processing proceeds to step S110.

On the other hand, when the external stimulus is generated byapplication of the external force to the robot 200 (Yes in step S104),the input data acquisition unit 112 acquires the input data based ondetected values of the touch sensor 211, the acceleration sensor 212,and the gyro sensor 214 (step S105). As described above, the input datais 18-dimensional data composed of the mean value and standard deviationof each component of the contact strength, acceleration, and angularvelocity in the X-axis direction, the Y-axis direction, and the Z-axisdirection measured by the touch sensor 211, the acceleration sensor 212,and the gyro sensor 214.

Subsequently, the control unit 110 newly stores the input data acquiredin step S105 in the input data history buffer 125 (step S106). When thelimit number of the input data history buffer 125 is exceeded, thecontrol unit 110 deletes the oldest input data and then stores theacquired input data in the input data history buffer 125.

Subsequently, the classification unit 113 classifies the plurality ofinput data stored in the input data history buffer 125 into a pluralityof clusters by using an unsupervised clustering method (step S107).

Subsequently, the relationship data acquisition unit 114 acquires therelationship data 126 representing the relationship between the inputdata acquired in step S105 and the plurality of clusters classified instep S107 (step S108).

Subsequently, the change amount acquisition unit 115 corrects theemotion change data 124 (emotion change parameter) provisionallyacquired in step S103 based on the relationship data 126 acquired instep S108 (step S109). For example, when DXP is acquired as the emotionchange data 124 in step S103, the change amount acquisition unit 115divides the DXP value by a value of the relationship data as shown inthe following equation.

DXP=DXP/Relationship data

As described above, the value of the relationship data is set in therange of 1 to 10. Therefore, in this example, the processing in stepS109 reduces the DXP by up to 1/10 of the original value. Then, theprocessing proceeds to step S110.

In step S110, the emotion parameter setting unit 116 sets the emotiondata 121 (emotion parameter) according to the emotion change data 124(emotion change parameter) acquired in step S103 or the emotion changedata 124 (emotion change parameter) corrected in step S109.Specifically, for example, if DXP has been acquired as the emotionchange data 124 in step S103, the emotion parameter setting unit 116adds the DXP of the emotion change data 124 to the X value (initialvalue at the first time) of the emotion data 121 obtained at that time.However, when the value (X value, Y value) of the emotion data 121exceeds the maximum value of the emotion map 300 after the emotionchange data 124 is added, the value of the emotion data 121 is set tothe maximum value of the emotion map 300. Further, when the value of theemotion data 121 is less than the minimum value of the emotion map 300after the emotion change data 124 is subtracted, the value of theemotion data 121 is set to the minimum value of the emotion map 300.

In steps S103 and S110, what kind of emotion change data 124 is acquiredso as to set the emotion data 121 for each of the external stimuli canbe arbitrarily set, but here, an example is shown below. The maximum andminimum values of the X and Y values of the emotion data 121 are definedby the size of the emotion map 300. Therefore, when the X and Y valuesexceed the maximum values of the emotion map 300, the maximum values areset, and when the X and Y values are below the minimum values of theemotion map 300, the minimum values are set, respectively, by thefollowing calculations.

The head portion 204 being stroked (feeling secured): X=X+DXP

The head portion 204 being hit (feeling anxious): X=X−DXM

(These external stimuli can be detected by the touch sensor 211 on thehead portion 204)

The body portion 206 being stroked (getting excited): Y=Y+DYP

The body portion 206 being hit (feeling lethargic): Y=Y−DYM

(These external stimuli can be detected by the touch sensor 211 on thebody portion 206)

Embraced with the head up (feeling happy): X=X+DXP and Y=Y+DYP

Suspended with the head down (feeling sad): X=X−DXM and Y=Y−DYM

(These external stimuli can be detected by the touch sensor 211, theacceleration sensor 212, and the gyro sensor 214)

Called with a gentle voice (feeling calm): X=X+DXP and Y=Y−DYM

Yelled loud (feeling frustrated): X=X−DXM and Y=Y+DYP

(These external stimuli can be detected by the microphone 213)

For example, when the head portion 204 is stroked, the pseudo emotion ofthe robot 200 feels secured, and the DXP of the emotion change data 124is added to the X value of the emotion data 121. On the contrary, whenthe head portion 204 is hit, the pseudo emotion of the robot 200 feelsanxious, and the DXM of the emotion change data 124 is subtracted fromthe X value of the emotion data 121. In step S102, the external stimulusacquisition unit 111 acquires a plurality of external stimuli ofdifferent types by the plurality of sensors included in the sensor unit210, so that the emotion change data 124 is acquired according to eachof the plurality of external stimuli, and the acquired emotion data 121is set according to the acquired emotion change data 124.

Then, the movement control unit 117 controls the movement of the robot200 according to the emotion data 121 (emotion parameter) set in thisway (step S111). Specifically, the drive unit 220 is driven to outputcries of the animal from the output unit 230 based on the values(movement control data and animal cry data) of the emotion expressiontable 122 corresponding to the coordinates on the emotion map 300indicated by the emotion data 121. When the emotion change data 124 iscorrected in step S109, the movement control unit 117 returns theemotion change data 124 to a state before the correction, after the endof step S111.

Subsequently, the control unit 110 determines whether or not to end theprocessing (step S112). For example, when the operation unit 240receives an instruction to turn off the power of the robot 200, theprocessing ends. If the processing ends (Yes in step S112), the controlunit 110 saves various data such as the emotion data 121 and the emotionchange data 124 in the non-volatile memory (for example, flash memory)of the storage unit 120 (step S113), and ends the robot controlprocessing.

On the other hand, if the processing does not end (No in step S112), thecontrol unit 110 determines whether or not the date has changed by theclock function (step S114). If the date has not changed (No in stepS114), the processing returns to step S102. The processing of step S114and the processing of steps S115 to S117 described later do notnecessarily have to be performed, and if the processing does not end (Noin step S112), the processing may immediately return to step S102.

On the other hand, if the date has changed (Yes in step S114), thecontrol unit 110 determines whether or not the date is during the firstperiod (step S115). Assuming that the first period is, for example, 50days from the pseudo birth of the robot 200 (at the time of the firstactivation by the user after shipment from the factory), if the growthdays data 123 is 50 or less, the control unit 110 determines that thedate is during the first period. If not during the first period (No instep S115), the processing returns to step S102.

If the date is during the first period (Yes in step S115), the changeamount learning unit 118 learns the emotion change data 124 (emotionchange parameter) (step S116). Specifically, in step S110 of the day, ifthe X value of the emotion data 121 is set to the maximum value of theemotion map 300 even once, 1 is added to the DXP of the emotion changedata 124, if the Y value of the emotion data 121 is set to the maximumvalue of the emotion map 300 even once, 1 is added to the DYP of theemotion change data 124, if the X value of the emotion data 121 is setto the minimum value of the emotion map 300 even once, 1 is added to theDXM of the emotion change data 124, and if the Y value of the emotiondata 121 is set to the minimum value of the emotion map 300 even once, 1is added to the DYM of the emotion change data 124. In this way, theemotion change data 124 is updated and learned. However, when each valueof the emotion change data 124 becomes too large, the amount of onechange of the emotion data 121 becomes too large. Therefore, the maximumvalue of each value of the emotion change data 124 is set to, forexample, 20, and each value is limited to 20 or less. Further, here, 1is added to any of the emotion change data 124, but for example, thenumber of times of setting each value to the maximum value or theminimum value is counted, and when the number of times is large, anumerical value to be added to the emotion change data 124 may beincreased.

In the learning of the emotion change data 124 (emotion changeparameter) in step S116, whether or not the emotion data 121 is set tothe maximum value or the minimum value of the emotion map 300 in stepS110 is determined based on the external stimulus acquired in step S102.Then, in step S102, since the plurality of external stimuli of differenttypes is acquired by the plurality of sensors included in the sensorunit 210, each of the emotion change data 124 is learned according toeach of the plurality of external stimuli. For example, if only the headportion 204 is stroked many times, only the DXP of the emotion changedata 124 increases, and other elements of the emotion change data 124 donot change, so that the robot 200 has a personality that easily feelssecured. Further, if only the head portion 204 is hit many times, onlythe DXM of the emotion change data 124 increases, and other elements ofthe emotion change data 124 do not change, so that the robot 200 has apersonality that easily feel anxious. In this way, the change amountlearning unit 118 learns the emotion change data 124 so as to make theemotion change data 124 be different from each other in response to eachof the external stimuli.

Subsequently, the control unit 110 expands the emotion map 300 by only 2for both the maximum value and the minimum value (step S117), adds 1 tothe growth days data 123, and returns to step S102. Here, the emotionmap 300 is expanded by only 2 for both the maximum value and the minimumvalue, but the numerical value to be expanded “2” is just an example,and may be expanded by 3 or more, or expanded by only 1. Further, thenumerical value to be expanded does not have to be the same for eachaxis of the emotion map 300, and for the maximum value and the minimumvalue.

Further, in FIG. 11, it is assumed that the learning and the expansionof the emotion map are performed after it is determined that the datehas changed in step S114, but the learning and the expansion of theemotion map may be performed after it is determined that reference time(for example, 9:00 pm) has been reached. Further, the determination instep S114 may not be performed based on an actual date, but may beperformed based on a value accumulated by the timer function of thecontrol unit 110 for the time when the robot 200 is turned on. Forexample, assuming that every time the accumulated power-on time becomesa multiple of 24, the robot 200 has grown for one day, and the learningand the expansion of the emotion map may be performed.

According to the robot control processing according to the firstembodiment described above, the plurality of input data acquired basedon at least one of the acceleration and the angular velocity generatedby application of an external force is classified into a plurality ofclusters, and the movement of the robot 200 is controlled based on therelationship data 126 representing the relationship between the inputdata acquired this time and the plurality of clusters. As a result, evenwith the same external stimulus, it is possible to control the robot 200to perform different movements according to the external force appliedso far so as to cause the robot 200 to move more expressively thanbefore.

Further, according to the robot control processing according to thefirst embodiment, the emotion parameter (emotion data 121) representingthe pseudo emotion of the robot 200 is set based on the relationshipdata 126, and the movement of the robot 200 is controlled based on theset emotion parameter (emotion data 121). As a result, complex emotionsof the robot 200 can be easily expressed.

Further, according to the robot control processing according to thefirst embodiment, the relationship data is acquired based on the inputdata distance which is the distance of the input data from the center ofthe cluster to which the acquired input data belongs. Then, the emotionparameter (emotion data 121) is set so that the pseudo emotion of therobot 200 changes more greatly as the input data distance increases. Asa result, for example, even if the same external stimulus is received,if many similar external stimuli have been received in the past, theinput data distance becomes small, and the personality (emotion changedata 124) can be controlled so as not to change much. Therefore, it ispossible to cause the robot 200 to move more expressively like a realcreature.

Further, according to the robot control processing according to thefirst embodiment, not only the acceleration and the angular velocitydetected by the acceleration sensor 212 and the gyro sensor 214, butalso a contact state (contact strength) generated, at the same timing asthe acceleration and the angular velocity, is detected by the touchsensor 211, and the input data is acquired based on the acceleration,the angular velocity, and the contact state. As a result, informationincluded in the input data becomes diverse, and it is possible toacquire the input data corresponding to various external stimuli.Therefore, it is possible to cause the robot 200 to move moreexpressively.

Second Embodiment

In the first embodiment described above, it is assumed that the owner(user) of the robot 200 is one user. Therefore, even if there is aplurality of users as the owners (users), and each of the plurality ofusers applies an external force to the robot 200 by hugging, stroking,or lifting the robot 200, the input data acquired according to theexternal force is stored in the same input data history buffer 125without being distinguished, and the movement of the robot 200 iscontrolled based on the relationship data 126 acquired from the storedinput data. That is, in the robot 200 of the first embodiment, themovement is controlled without distinguishing the user (owner) who hasapplied the external force, and when it is assumed that there is aplurality of users who is the owners (users), appropriate movementaccording to each of the owners (users) may not be realized.

On the other hand, a robot 2000 according to a second embodiment of thepresent invention shown in FIG. 12 can realize the movement according toeach owner (user) even when it is assumed that there is a plurality ofusers who is the owners (users). It is assumed that the robot 2000according to the second embodiment, for example, has three owners(users), and the users who are the three owners (users) are alsoreferred to as users A to C below. As shown in FIG. 12, the robot 2000according to the second embodiment is newly provided with acommunication unit 250 as compared with the robot 200 according to thefirst embodiment. In addition, the robot 2000 is newly provided with auser identification unit 119 as a functional configuration of thecontrol unit 110. Further, the robot 2000 stores three input datahistory buffers (a first input data history buffer 1251, a second inputdata history buffer 1252, and a third input data history buffer 1253) inthe storage unit 120 as compared with the robot 200 according to thefirst embodiment.

The communication unit 250 is, for example, an interface for wirelesslyconnecting to the Internet. The robot 2000 receives a switching commandfor switching the owner (user) of the robot 2000 from a smartphone orthe like (not shown) via the communication unit 250.

The user identification unit 119 identifies each of a plurality of theusers A to C set as the owners (users). Specifically, the useridentification unit 119 identifies (switches the user to) the currentowner (user) of the robot 2000, among the users A to C, based on theswitching command received by the communication unit 250. The useridentification unit 119 may switch the users A to C, who are the owners(users), based on instructions received via the operation unit 240 andthe microphone 213.

The first input data history buffer 1251, the second input data historybuffer 1252, and the third input data history buffer 1253 are providedcorresponding to the users A to C, who are the owners (users) of therobot 2000, respectively, and the input data caused by actions of thecorresponding users A to C is stored. Specifically, the input dataacquired by the user A applying an external force to the robot 2000 isstored in the first input data history buffer 1251. Further, the inputdata acquired by the user B applying an external force to the robot 2000is stored in the second input data history buffer 1252. Further, theinput data acquired by the user C applying an external force to therobot 2000 is stored in the third input data history buffer 1253. Whenthere are four or more owners of the robot 2000, new input data historybuffers corresponding to the number of the owners may be provided.

Subsequently, the robot control processing in the second embodiment willbe described. The robot control processing in the second embodiment issubstantially the same processing as the robot control processing (FIG.11) in the first embodiment. However, in steps S106 to S108, processingcorresponding to the user, among the users A to C, who is identified asthe current owner (user) of the robot 2000 by the user identificationunit 119, is executed.

Specifically, in step S106, the control unit 110 stores the dataacquired in step S105 in the first to third input data history buffers1251 to 1253 corresponding to the user, among the users A to C, who isidentified as the current owner (user) (hereinafter referred to asidentified user) by the user identification unit 119. Then, in stepS107, the classification unit 113 classifies the input data stored inthe input data history buffers 1251 to 1253 corresponding to theidentified user by an unsupervised clustering method. Then, in stepS108, the relationship data acquisition unit 114 acquires therelationship data 126 representing the relationship between the inputdata acquired in step S105 and a cluster classified according to theidentified user. After that, the same processing as the robot controlprocessing in the first embodiment is executed.

As described above, in the present embodiment, the input data isseparately stored for each user who is the owner (user) of the robot2000, and the input data corresponding to the user who is the currentowner (user) is classified into clusters so that the relationship data126 is acquired. Therefore, even if the same external stimulus isapplied to the robot, the relationship data 126 that is differentdepending on the user will be acquired. As a result, even when there isa plurality of owners (users), it is possible to cause the robot toperform the movement according to the owner (user).

Modifications

The present invention is not limited to the above-described embodiments,and various modifications and applications are possible. For example, inthe above-mentioned emotion expression table 122, the movement of thehead portion 204 of the robot 200 and the cry of the animalcorresponding to each emotion represented by the coordinates on theemotion map are set, but only the movement of the head portion 204 oronly the cry of the animal may be set. Further, control other than themovement of the head portion 204 or the cry of the animal may be set. Ascontrol other than the movement of the head portion 204 and the cry ofthe animal, for example, when the output unit 230 of the robot 200 isprovided with a light emitting diode (LED), it is conceivable to controlcolors and brightness of the LED to be turned on.

Further, in the above-described embodiments, the relationship dataacquisition unit 114 specifies a cluster to which the input dataacquired this time belongs from among the plurality of classifiedclusters, and based on the input data distance, which is the distancefrom the center of the specified cluster to the input data, acquires therelationship data 126. However, a method by which the relationship dataacquisition unit 114 acquires the relationship data 126 from theclassified cluster is not limited to this. For example, the relationshipdata acquisition unit 114 may acquire a value (degree of familiarity) ofthe relationship data 126 based on acquisition timing of the input dataincluded in the specified cluster.

Specifically, the relationship data acquisition unit 114 obtains a meanvalue of acquisition dates and times of the plurality of input data(average input data acquisition date and time) included in the specifiedcluster. Then, the relationship data acquisition unit 114 may correctthe value (degree of familiarity) of the relationship data 126 acquiredbased on the input data distance so that the earlier the average inputdata acquisition date and time, the smaller the value (degree offamiliarity). Alternatively, without using the input data distance, therelationship data acquisition unit 114 may acquire the relationship data126 by calculating a value in the range of 1 to 10 which becomes smalleras the average input data acquisition date and time becomes earlierbased on a predetermined standard.

By so doing, when an external stimulus similar to the external stimulusapplied in an earlier period is applied to the robots 200 and 2000, therobots 200 and 2000 can be caused to move as though they have forgottenthe external stimulus applied in the earlier period and are not used tothe stimulus this time. As a result, it is possible to cause the robots200 and 2000 behave more like creatures. When the relationship data 126is acquired based on the acquisition time of the input data in this way,the input data to be clustered may be acquired not only from theexternal stimulus by the external force but also from any externalstimulus including sound and the like.

Further, in the above embodiments, the value (emotion) of the emotiondata 121 is changed based on the value (personality) of the emotionchange data 124, and the movement of the robot is controlled based onthe value of the emotion data 121. However, if a predetermined conditionsuch as an extreme personality is satisfied, the movement of the robotmay be directly controlled based on the value (personality) of theemotion change data 124. Specifically, each of the plurality ofpersonality movements (movement control data and animal cry data) of therobots 200 and 2000 is set in advance corresponding to each of the DXP,the DYP, the DXM, and the DYM of the emotion change data 124. Forexample, the personality movements are set in advance so that the DXPcorresponds to a personality movement in which the robots 200 and 2000behave cheerfully, the DYP corresponds to a personality movement inwhich the robots 200 and 2000 behave actively, the DXM corresponds to apersonality movement in which the robots 200 and 2000 behave shyly, andthe DYM corresponds to a personality movement in which the robots 200and 2000 behave in a spoiled manner. Then, when an external stimulus isacquired, the control unit 110 uniformly corrects the DXP, the DYP, theDXM, and the DYM of the emotion change data 124 according to therelationship data 126, and then when the maximum value among theseelements is equal to or higher than a threshold value (for example, 18or more), the robots 200 and 2000 may be controlled so as to perform thepersonality movements corresponding to the emotion change data 124having the maximum value. By so doing, it is possible to realizemovements from which one can feel more of the personalities of therobots 200 and 2000.

Further, in the above-described embodiments, the size of the emotion mapis expanded by 2 for both the maximum value and the minimum value of theemotion map each time the pseudo growth days of the robots 200 and 2000increase by one day during the first period. However, the size of theemotion map does not have to be expanded evenly in this way. Forexample, how to expand the emotion map may be changed according to howthe emotion data 121 changes.

In order to change how to expand the emotion map according to how theemotion data 121 changes, for example, in step S117 of the robot controlprocessing (FIG. 11), the following processing may be performed. If thevalue of the emotion data 121 is set to the maximum value of the emotionmap even once in step S110 in a certain day, the maximum value of theemotion map is increased by 3 in the subsequent step S117. If the valueof the emotion data 121 never reaches the maximum value of the emotionmap in step S110, the maximum value of the emotion map is increased by 1in the subsequent step S117.

Similarly for the minimum value of the emotion map, if the value of theemotion data 121 is set to the minimum value of the emotion map evenonce in the day, the minimum value of the emotion map is reduced by 3.If the value of the emotion data 121 never reaches the minimum value ofthe emotion map, the minimum value of the emotion map is reduced by 1.By changing how to expand the emotion map in this way, the settablerange of the emotion data 121 is learned in response to the externalstimulus.

However, when a length of the first period is, for example, 50 days, ifthe emotion map is expanded in this way, the maximum value of theemotion map can be 250 and the minimum value can be −250. Therefore, themovement control data and the animal cry data need to be registered sothat the emotion expression table 122 can respond to the maximum value250 and the minimum value −250. In the above-described embodiments andmodifications, the emotion map is always expanded during the firstperiod, but the change in the range of the emotion map is not limited toexpansion. For example, the range of the emotion map may be reduced fora direction of emotions that rarely occur in response to externalstimuli.

In this way, by changing how to expand the emotion map in response toexternal stimuli, not only the emotion change parameter (emotion changedata 124) but also the emotion map can be used to represent the pseudopersonalities of the robots 200 and 2000. Therefore, the robots 200 and2000 can express more diverse personalities depending on how the userinteracts with the robots 200 and 2000.

Further, in the above-described embodiments, the robot 200 has aconfiguration in which the apparatus control device 100 is built inside.However, as shown in FIG. 13, the apparatus control device 100 may beconfigured as a separate device (for example, a server) instead of beingbuilt inside the robot 200. In this modification, the apparatus controldevice 100 includes a communication unit 130, the robot 200 alsoincludes a communication unit 260, and the communication unit 130 andthe communication unit 260 are configured to transmit and receive datato and from each other. Then, the external stimulus acquisition unit 111acquires an external stimulus detected by the sensor unit 210 via thecommunication unit 130 and the communication unit 260, and the movementcontrol unit 117 controls the drive unit 220 and the output unit 230 viathe communication unit 130 and the communication unit 260. Although notshown, similarly, the robot 2000 according to the second embodiment mayhave the apparatus control device 100 configured as a separate device.

Further, in the above-described embodiment, the apparatus control device100 is a control device that controls the robots 200 and 2000, but anapparatus to be controlled is not limited to the robots 200 and 2000. Asan apparatus to be controlled, for example, a wristwatch or the like canbe considered. For example, when a wristwatch capable of outputtingsound and equipped with an acceleration sensor or a gyro sensor is usedas an apparatus to be controlled, an external stimulus can be assumed tobe an impact applied to the wristwatch detected by the accelerationsensor or the gyro sensor. Then, the emotion change data 124 and theemotion data 121 are updated in response to this external stimulus. Itcan be considered that based on the emotion data 121 at the time whenthe user wears the wristwatch, sound data set in the emotion expressiontable 122 is output.

As a result, if the wristwatch is handled roughly, the wristwatch emitsa sad sound when the user wears it, and if the wristwatch is handledcarefully, the wristwatch emits a happy sound when the user wears it.Furthermore, if the emotion change data 124 is set during the firstperiod (for example, 50 days), the wristwatch will have individuality(pseudo personality) depending on how the user handles the wristwatchduring the first period. This means that, even if the wristwatch has thesame model number, if the user handles it carefully, it becomes awristwatch that easily feels happy, and if it is handled roughly, itbecomes a wristwatch that easily feel sad.

In this way, the apparatus control device 100 can be applied not only torobots but also to various apparatuses. When the apparatus controldevice 100 is applied to an apparatus, the apparatus can be providedwith pseudo emotions and personality, and the user can be made to feelas though he or she is raising the apparatus in a pseudo manner.

In the above-described embodiment, the operation program executed by theCPU of the control unit 110 is stored in advance in the ROM or the likeof the storage unit 120. However, the present invention is not limitedto this, and the operation program for executing the above-mentionedvarious types of processing may be mounted on an existinggeneral-purpose computer or the like so that the operation program canfunction as a device corresponding to the apparatus control device 100according to the above-described embodiments.

The method of providing such a program is arbitrary. For example, theprogram may be stored in a computer-readable recording medium (flexibledisk, compact disc (CD)-ROM, digital versatile disc (DVD)-ROM,magneto-optical disc (MO), a memory card, USB memory, etc.) anddistributed, or the program may be stored in a storage on a network suchas the Internet and provided through download of the program.

Further, when the above-mentioned processing is executed by a divisionof an operating system (OS) and an application program or cooperationbetween the OS and the application program, only the application programmay be stored in the recording medium or the storage. Further, it isalso possible to superimpose the program on a carrier wave anddistribute it via a network. For example, the above program may beposted on a bulletin board system (BBS) on the network and distributedvia the network. Then, by starting this program and executing it in thesame manner as other application programs under the control of the OS,the above processing may be executed.

The present invention allows for various embodiments and modificationswithout departing from the broad spirit and scope of the presentinvention. Moreover, the above-described embodiment is for explainingthe present invention, and does not limit the scope of the presentinvention. That is, the scope of the present invention is indicated notby the embodiments but by the claims. Then, various modifications madewithin the scope of the claims and the equivalent meaning of theinvention are considered to be within the scope of the presentinvention.

What is claimed is:
 1. An apparatus control device comprising: at leastone processor; and at least one first memory that stores a programexecuted by the processor, wherein the processor acquires input databased on at least one of acceleration and angular velocity generated byapplication of an external force to an apparatus, classifies a pluralityof the acquired input data into a plurality of clusters by anunsupervised clustering method, acquires relationship data representingrelationship between the acquired input data and the plurality ofclassified clusters, and controls movement of the apparatus based on theacquired relationship data.
 2. The apparatus control device according toclaim 1, wherein the processor sets an emotion parameter representing apseudo emotion of the apparatus based on the relationship data, andcontrols movement of the apparatus based on the set emotion parameter.3. The apparatus control device according to claim 2, wherein theprocessor specifies a cluster to which the acquired input data belongsamong the plurality of clusters, and acquires the relationship databased on input data distance that is distance of the input data from acenter of the specified cluster in a space representing relationshipbetween the plurality of clusters and the input data, and sets theemotion parameter so that a pseudo emotion of the apparatus representedby the emotion parameter changes more greatly as the acquired input datadistance increases.
 4. The apparatus control device according to claim1, wherein the processor specifies a cluster to which the acquired inputdata belongs among the plurality of clusters, and acquires therelationship data based on acquisition timing of the input data includedin the specified cluster.
 5. The apparatus control device according toclaim 1, wherein the processor identifies each of a plurality of usersof the apparatus, acquires the input data in correspondence with each ofthe plurality of users based on an identification result of each of theplurality of users, stores a plurality of the input data in a secondmemory in correspondence with each of the plurality of users based onthe identification result by an identification unit, classifies theplurality of input data into a plurality of clusters in correspondencewith each of the plurality of users based on the identification resultof each of the plurality of users, and acquires the relationship data incorrespondence with each of the plurality of users based on theidentification result of each of the plurality of users.
 6. Theapparatus control device according to claim 1, wherein the processoracquires the input data based on the acceleration and the angularvelocity generated at a same timing by application of an external forceto the apparatus and a state of contact with the apparatus at a timingwhen the acceleration and the angular velocity are generated.
 7. Theapparatus control device according to claim 1, wherein the processorsets each of a plurality of personality movements of the apparatus incorrespondence with each of a plurality of emotion change parametersdifferent from each other of the apparatus, when an external force isapplied to the apparatus, controls the apparatus so as to execute one ofthe personality movements corresponding to one of the emotion changeparameters having a maximum value among the plurality of personalitymovements.
 8. An apparatus comprising the apparatus control deviceaccording to claim
 1. 9. An apparatus control method comprising, thesteps of: acquiring input data based on at least one of acceleration andangular velocity generated by application of an external force to anapparatus; classifying a plurality of the acquired input data into aplurality of clusters by an unsupervised clustering method; acquiringrelationship data representing relationship between the acquired inputdata and the plurality of the clusters classified in the classifyingstep; and controlling movement of the apparatus based on the acquiredrelationship data.
 10. A storage medium non-temporarily storing aprogram for causing a computer to realize a function of acquiring inputdata based on at least one of acceleration and angular velocitygenerated by application of an external force to an apparatus, afunction of classifying a plurality of the acquired input data into aplurality of clusters by an unsupervised clustering method, a functionof acquiring relationship data representing relationship between theacquired input data and the plurality of classified clusters, and afunction of controlling movement of the apparatus based on the acquiredrelationship data.